import req from '@/utils/request';
import * as URL from '@/constants/api'

export function userProfile() {
  return req({
    url: URL.USERPROFILE,
  })
    .then(res => res.data.data)
    .catch(err => Promise.reject(err.response.data.message));
}
